<template>
    <div>
        <div class="w-50">
            <el-form label-position="right" label-width="80px" :model="formLabelAlign">
                <el-form-item label="账号">
                    <el-input v-model="formLabelAlign.name"></el-input>
                </el-form-item>
                <el-form-item label="密码">
                    <el-input v-model="formLabelAlign.password"></el-input>
                </el-form-item>
            </el-form>
        </div>
        <div>
            <el-button type="primary" @click="sendLoginStatus">立即创建</el-button>
        </div>
    </div>
</template>

<script>
    export default {
        name: "Login",
        data() {
            return {
                isLogined: false,
                formLabelAlign: {
                    name: '',
                    password: ''
                }
            }
        },
        methods: {
            sendLoginStatus() {
                this.$emit('isLoign', this.isLogined)
            }
        }
    }
</script>

<style scoped>

</style>